package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RyStudentMapper;
import com.ruoyi.system.domain.RyStudent;
import com.ruoyi.system.service.IRyStudentService;
import com.ruoyi.common.core.text.Convert;

/**
 * ry_studentService业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
@Service
public class RyStudentServiceImpl implements IRyStudentService 
{
    @Autowired
    private RyStudentMapper ryStudentMapper;

    /**
     * 查询ry_student
     * 
     * @param id ry_student主键
     * @return ry_student
     */
    @Override
    public RyStudent selectRyStudentById(String id)
    {
        return ryStudentMapper.selectRyStudentById(id);
    }

    /**
     * 查询ry_student列表
     * 
     * @param ryStudent ry_student
     * @return ry_student
     */
    @Override
    public List<RyStudent> selectRyStudentList(RyStudent ryStudent)
    {
        return ryStudentMapper.selectRyStudentList(ryStudent);
    }

    /**
     * 新增ry_student
     * 
     * @param ryStudent ry_student
     * @return 结果
     */
    @Override
    public int insertRyStudent(RyStudent ryStudent)
    {
        return ryStudentMapper.insertRyStudent(ryStudent);
    }

    /**
     * 修改ry_student
     * 
     * @param ryStudent ry_student
     * @return 结果
     */
    @Override
    public int updateRyStudent(RyStudent ryStudent)
    {
        return ryStudentMapper.updateRyStudent(ryStudent);
    }

    /**
     * 批量删除ry_student
     * 
     * @param ids 需要删除的ry_student主键
     * @return 结果
     */
    @Override
    public int deleteRyStudentByIds(String ids)
    {
        return ryStudentMapper.deleteRyStudentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除ry_student信息
     * 
     * @param id ry_student主键
     * @return 结果
     */
    @Override
    public int deleteRyStudentById(String id)
    {
        return ryStudentMapper.deleteRyStudentById(id);
    }
}
